package com.archive.core.table;

import lombok.Data;

/**
 * 归档表字段
 */
@Data
public class ArchiveColumn {

    public ArchiveColumn() {
    }

    public ArchiveColumn(String columnName, String columnType, String nullable, String characterSetName, String collationName, String columnDefault, String columnComment) {
        this.columnName = columnName;
        this.columnType = columnType;
        this.nullable = nullable;
        this.characterSetName = characterSetName;
        this.collationName = collationName;
        this.columnDefault = columnDefault;
        this.columnComment = columnComment;
    }

    /**
     * 字段名
     */
    private String columnName;

    /**
     * 是否主键
     */
    private boolean primaryKey;

    /**
     * 字段类型
     */
    private String columnType;

    private String nullable;

    private String characterSetName;

    private String collationName;

    private String columnDefault;

    private String columnComment;

}
